import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *

class MainWindow(QMainWindow):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.setWindowTitle('加载本地网页')
        self.setGeometry(70,70,555,330)#窗口的初始位置和大小
        self.browser=QWebEngineView()
        #加载本地html
        #相对路径：file:///D:/spark/PyQT5_Main/Window/html/aa.html
        #绝对路径：./html/aa.html
        # self.browser.load(QUrl(QFileInfo(r"E:\testcode\mycode\testvue1\report_html\dist\index.html").absoluteFilePath()))
        self.browser.load(QUrl('https://paytest.ciicsh.com/salaryMgr/salaryConfig'))


        self.setCentralWidget(self.browser)
if __name__ == '__main__':
    app=QApplication(sys.argv)
    win=MainWindow()
    win.show()
    app.exit(app.exec_())
